package org.lex.swt.app;

public class ApplicationContext {
	private final Application app;

	private ActionService actionService = null;
	private LocalStorage localStorage = null;

	public ActionMap getActionMap() {
		return getActionService().getActionMap();
	}

	public ActionService getActionService() {
		return actionService;
	}

	public LocalStorage getLocalStorage() {
		return localStorage;
	}

	ApplicationContext(Application app) {
		this.app = app;
		actionService = new ActionService();
		localStorage = new LocalStorage(this.app.getApplicationName());
	}
}
